package com.smile.spring;

import com.smile.spring.service.UserService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2021/12/11 16:38
 */
@ComponentScan("com.smile.spring")
public class AppConfig {

    @Bean
    public UserService userService(){
        return new UserService();
    }

}
